Skip to content

Update transformers to stable 5.x#563

Merged
Blaizzy merged 1 commit intoBlaizzy:mainfrom
andimarafioti:chore/transformers-5-mlx-lm-0311
Mar 11, 2026
Merged

Update transformers to stable 5.x#563
Blaizzy merged 1 commit intoBlaizzy:mainfrom
andimarafioti:chore/transformers-5-mlx-lm-0311

Conversation

@andimarafioti
Copy link
Copy Markdown
Contributor

@andimarafioti andimarafioti commented Mar 11, 2026

Summary

  • change the library dependency from the transformers 5.0.0 release candidate to stable transformers>=5.0.0
  • update mlx-lm to 0.31.1, the latest non-yanked published release compatible with stable transformers 5
  • require huggingface_hub>=1.0, which is a requirement of transformers >=5.0.0 anyway
  • align the tokenizer tests with the current AutoTokenizer implementation and make the Llama shape assertions depend on the constructed input length

Verification

  • uv lock
  • uv run --extra dev --extra tts pytest mlx_audio/tests/test_optional_deps.py mlx_audio/tests/test_lazy_imports.py mlx_audio/tts/tests/test_models.py -q

@andimarafioti andimarafioti force-pushed the chore/transformers-5-mlx-lm-0311 branch from a41aa37 to 6d4258c Compare March 11, 2026 13:19
Copy link
Copy Markdown
Owner

@Blaizzy Blaizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Blaizzy Blaizzy merged commit 47ad675 into Blaizzy:main Mar 11, 2026
10 checks passed
@andimarafioti andimarafioti deleted the chore/transformers-5-mlx-lm-0311 branch March 12, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants